<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ErrorLine</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ErrorLine()</font></b></p>
<p><b>Syntax</b></p><blockquote>

Result = <font color="#006666"><b>ErrorLine</b></font>()</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Returns the line number in the source code where the current error occurred. 
This command only returns a meaningful value if there was an error handled by <a href="onerrorcall.html">OnErrorCall()</a> or <a href="onerrorgoto.html">OnErrorGoto()</a>. 
<br>
<br>
The tracking of line numbers needs to be enabled on compilation for this command to return the actual line number. 
To enable this feature, enable the "Enable OnError lines support" checkbox in the <a href="../reference/ide_compiler.html">compiler options</a> 
or specify the /LINENUMBERING (Windows) or --linenumbering (Linux, Mac OSX) command-line switch when compiling 
from the <a href="../reference/cli_compiler.html">command-line</a>. 

 

</blockquote><p><b>Parameters</b></p><blockquote>

None.





</blockquote><p><b>Return value</b></p><blockquote>



The line number of the error, or -1 if the OnError lines support is disabled. 

 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=errorfile.html>ErrorFile()</a> - <a href=index.html>OnError Index</a> - <a href=errormessage.html>ErrorMessage()</a> -&gt;



</body></html>